const pageExtend = (Page) => {
  return object => {
    object.watch = {} as any
    let originalOnLoad = object.onLoad;
    object.onLoad = function (options) {
      originalOnLoad.call(this, options)
    }
    return Page(object)
  }
}
const originalPage = Page
Page = pageExtend(originalPage)